import os

f1=open('d:/access.log')
for line in f1:
       line=line.strip('\n')
       line=line.split('- -')[0].strip(' ')
       line=line+'|'
       print(line)
